Skip to content

chore(components): rename legacy-ui/ to site/ and drop @/UI alias#104

Merged
ahnafnafee merged 1 commit intomainfrom
chore/rename-site
Apr 26, 2026
Merged

chore(components): rename legacy-ui/ to site/ and drop @/UI alias#104
ahnafnafee merged 1 commit intomainfrom
chore/rename-site

Conversation

@ahnafnafee
Copy link
Copy Markdown
Owner

Why

The folder previously called legacy-ui/ wasn't legacy — it holds active bespoke composition components (Header, Footer, Nav, AppLayoutPage, Hero, Searchbar, BackToTop, EmptyResult, MobileNav, ThemeMenu, link wrappers, image wrappers) that compose shadcn primitives plus project-specific state. The legacy- prefix was a transitional concession during the shadcn migration to dodge the Windows case-collision with ui/. Rename to site/ now that the migration is settled.

What changed

  • git mv src/components/legacy-ui → src/components/site
  • sed sweep: @/UI/@/components/site/, @/components/legacy-ui/@/components/site/ (~38 files touched)
  • tsconfig.json: drop @/UI and @/UI/* path aliases (no longer needed)
  • .prettierrc.js: drop the @/UI group from importOrder
  • CLAUDE.md: update Path Aliases + Component Layout sections to describe ui/ + site/ instead of legacy-ui/

Mental model after this PR

  • src/components/ui/ — shadcn primitives, generated/synced via npx shadcn@latest add. Don't hand-edit.
  • src/components/site/ — bespoke composition components specific to this site. Compose ui/ + project hooks/state.

Test plan

  • yarn type-check — clean
  • yarn lint — clean
  • yarn test — 48/48 pass
  • yarn build — 50 routes generated
  • Visual smoke test on yarn dev — header, footer, nav, mobile menu, theme toggle, dialogs all still render

Single commit so it's easy to revert if anything misfires.

The folder previously called legacy-ui/ wasn't legacy — it holds active
bespoke composition components (Header, Footer, Nav, AppLayoutPage,
Hero, Searchbar, BackToTop, EmptyResult, MobileNav, ThemeMenu, link
wrappers, image wrappers) that compose shadcn primitives plus
project-specific state. The legacy- prefix was a transitional concession
during the shadcn migration to dodge the Windows case-collision with
ui/. Rename to site/ now that the migration is settled.

Mechanical changes:
- git mv src/components/legacy-ui → src/components/site
- sed sweep: @/UI/ → @/components/site/, @/components/legacy-ui/ →
  @/components/site/ (~38 files)
- tsconfig.json: drop @/UI and @/UI/* path aliases (no longer needed)
- .prettierrc.js: drop the @/UI group from importOrder
- CLAUDE.md: update Path Aliases + Component Layout sections to
  describe ui/ + site/ instead of legacy-ui/

Verified locally: yarn type-check, yarn lint, yarn test (48/48),
yarn build (50 routes) — all clean.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ahnafnafee-dev Ready Ready Preview, Comment Apr 26, 2026 9:19pm

@ahnafnafee ahnafnafee merged commit 59874e4 into main Apr 26, 2026
6 checks passed
@ahnafnafee ahnafnafee deleted the chore/rename-site branch April 26, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant